package com.example.securitydemo.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.securitydemo.entities.Permission;

import java.util.List;

public interface PermissionMapper extends BaseMapper<Permission> {
    /**
     * 查找用户权限集
     *
     * @param userId 用户ID
     * @return 用户权限集合
     */
    List<Permission> findUserPermissionsByUserId(long userId);
}
